# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.757.13.6 -> 1.757.13.7 # drivers/char/agp/agpgart_be.c 1.41.1.6 -> 1.41.1.7 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/10/29 bjorn_helgaas@hp.com 1.757.13.7 # agpgart_be.c: Use PCI_AGP_ constants. # -------------------------------------------- # diff -Nru a/drivers/char/agp/agpgart_be.c b/drivers/char/agp/agpgart_be.c --- a/drivers/char/agp/agpgart_be.c Wed Oct 8 09:08:04 2003 +++ b/drivers/char/agp/agpgart_be.c Wed Oct 8 09:08:04 2003 @@ -471,7 +471,7 @@ * Ok, here we have a AGP device. Disable impossible * settings, and adjust the readqueue to the minimum. */ - pci_read_config_dword(device, agp + 4, &scratch); + pci_read_config_dword(device, agp + PCI_AGP_STATUS, &scratch); /* adjust RQ depth */ command = @@ -534,7 +534,7 @@ printk(KERN_INFO PFX "Putting AGP V%d device at %s into %dx mode\n", agp_v3 ? 3 : 2, device->slot_name, mode); - pci_write_config_dword(device, agp + 8, command); + pci_write_config_dword(device, agp + PCI_AGP_COMMAND, command); } } @@ -543,14 +543,14 @@ u32 command; pci_read_config_dword(agp_bridge.dev, - agp_bridge.capndx + 4, + agp_bridge.capndx + PCI_AGP_STATUS, &command); command = agp_collect_device_status(mode, command); command |= 0x00000100; pci_write_config_dword(agp_bridge.dev, - agp_bridge.capndx + 8, + agp_bridge.capndx + PCI_AGP_COMMAND, command); agp_device_command(command, 0); @@ -3725,12 +3725,12 @@ } - pci_read_config_dword(agp_bridge.dev, agp_bridge.capndx + 4, &command); + pci_read_config_dword(agp_bridge.dev, agp_bridge.capndx + PCI_AGP_STATUS, &command); command = agp_collect_device_status(mode, command); command |= 0x100; - pci_write_config_dword(agp_bridge.dev, agp_bridge.capndx + 8, command); + pci_write_config_dword(agp_bridge.dev, agp_bridge.capndx + PCI_AGP_COMMAND, command); agp_device_command(command, 1); } @@ -4289,7 +4289,7 @@ /* Fill in the mode register */ pci_read_config_dword(serverworks_private.svrwrks_dev, - agp_bridge.capndx + 4, + agp_bridge.capndx + PCI_AGP_STATUS, &agp_bridge.mode); pci_read_config_byte(agp_bridge.dev, @@ -4442,7 +4442,7 @@ u32 command; pci_read_config_dword(serverworks_private.svrwrks_dev, - agp_bridge.capndx + 4, + agp_bridge.capndx + PCI_AGP_STATUS, &command); command = agp_collect_device_status(mode, command); @@ -4452,7 +4452,7 @@ command |= 0x00000100; pci_write_config_dword(serverworks_private.svrwrks_dev, - agp_bridge.capndx + 8, + agp_bridge.capndx + PCI_AGP_COMMAND, command); agp_device_command(command, 0); @@ -5539,7 +5539,7 @@ /* Fill in the mode register */ pci_read_config_dword(agp_bridge.dev, - agp_bridge.capndx + 4, + agp_bridge.capndx + PCI_AGP_STATUS, &agp_bridge.mode); /* probe for known chipsets */